﻿using Coldairarrow.Business.BackStage.Abstracts;
using Coldairarrow.Entity.BackStage.Abstracts;
using Coldairarrow.Util;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Api.Controllers.Frontstage.Abstracts
{
    [Route("/Frontstage/Abstracts/[controller]/[action]")]
    public class BS_AbstractsController : BaseApiController
    {
        #region DI

        public BS_AbstractsController(IBS_AbstractsBusiness bS_AbstractsBus)
        {
            _bS_AbstractsBus = bS_AbstractsBus;
        }

        IBS_AbstractsBusiness _bS_AbstractsBus { get; }

        #endregion

        #region 获取

        /// <summary>
        /// 前台——获取注册协议
        /// </summary>
        /// <returns></returns>
        [NoCheckJWT]
        [HttpPost]
        public BS_Abstracts GetTheZCXYData()
        {
            return  _bS_AbstractsBus.GetZCXYDataAsync();
        }

        /// <summary>
        /// 前台——获取积分规则说明
        /// </summary>
        /// <returns></returns>
        [NoCheckJWT]
        [HttpPost]
        public BS_Abstracts GetTheJFGZData()
        {
            return _bS_AbstractsBus.GetJFGZDataAsync();
        }

        /// <summary>
        /// 前台——获取收益规则说明
        /// </summary>
        /// <returns></returns>
        [NoCheckJWT]
        [HttpPost]
        public BS_Abstracts GetTheSYSMData()
        {
            return _bS_AbstractsBus.GetSYSMDataAsync();
        }

        /// <summary>
        /// 前台——获取提现规则说明
        /// </summary>
        /// <returns></returns>
        [NoCheckJWT]
        [HttpPost]
        public BS_Abstracts GetTheTXSMData()
        {
            return _bS_AbstractsBus.GetTXSMDataAsync();
        }

        #endregion


    }
}